package com.reggie.service;

import com.reggie.dto.OrdersDto;
import com.reggie.pojo.Orders;
import com.reggie.util.PageUtil;


import java.time.LocalDateTime;
import java.util.List;

public interface OrderService {
    PageUtil<Orders> findAll(Integer page, Integer pageSize, String number, String beginTime, String endTime);

    boolean editStatus(Integer status, Long id);

    boolean add(Orders orders);

    List<OrdersDto> findByUserId(Integer page, Integer pageSize, Long userId);

    Orders findById(Long id);
}
